package xyz.chenyongpeng.orderproviderdubbo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import xyz.chenyongpeng.entity.ZsCoupon;
import xyz.chenyongpeng.to.CouponTo;
import xyz.chenyongpeng.to.MyCoupons;

import java.util.List;
import java.util.Map;

public interface ZsCouponMapper extends BaseMapper<ZsCoupon> {
    Integer getCouponLost(Map<String,Object> parms);
    List<Long> getGoodsIdByCouponId(String coupon_id);

    List<CouponTo> getListByLimit(Map<String, Object> parms);

    int countByCoupon(Map<String,Object> parms);

    List<MyCoupons> getMyCoupons(Map<String, Object> parms);

    int getMyCouponsCount(Map<String,Object> parms);

    List<MyCoupons> getCouponListByGoodsId(Map<String, Object> parms);
}
